<script setup lang="ts">
defineProps({
  avatar: { type: String, default: '@/assets/avatar.gif' },
  name: { type: String, default: '面试鸭' },
  job: { type: String, default: '后端开发' },
  content: { type: String, default: '题目挺多的，没事的时候刷一刷，就当回顾知识点' },
})
</script>

<template>
  <div class="VIPComment">
    <div class="VIPComment-header">
      <img class="avatar" src="@/assets/avatar.gif" alt="" />
      <div>
        <p class="name">{{ name }}</p>
        <p class="job">{{job}}</p>
      </div>
    </div>
    <div class="VIPComment-content">
      <p class="content">{{ content }}</p>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.VIPComment {
  padding: 24px;
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 8px;
  &:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  .VIPComment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    .avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      object-fit: cover;
      margin-right: 8px;
    }
    .name {
      font-size: 16px;
      font-weight: 600;
    }
    .job {
      font-size: 14px;
      color: #000000a6;
    }
  }
  .content {
    color: #555;
    font-size: 14px;
  }
}
</style>
